import request from '@/utils/request'

// 查询列表
export function listApi(query) {
  return request({
    url: '/system/Api/role/list',
    method: 'get',
    params: query
  })
}

// 详情
export function detailApi(id) {
  return request({
    url: '/system/Api/role/' + id,
    method: 'get'
  })
}

// 新增
export function addApi(query) {
  return request({
    url: '/system/Api/role',
    method: 'POST',
    data: query
  })
}

export function updateApi(query) {
  return request({
    url: '/system/Api/role',
    method: 'PUT',
    data: query
  })
}

export function deleteApi(id) {
  return request({
    url: '/system/Api/role/' + id,
    method: 'delete',
  })
}

export function getmagess() {
  return request({
    url: '/system/push/getmagess',
    method: 'get',
  })
}

export function updatesyste(uuid) {
  return request({
    url: '/system/push/updatesyste/' + uuid,
    method: 'get',
  })
}

export function readMagesApi(uuid) {
  return request({
    url: '/system/push/readMages/' + uuid,
    method: 'get',
  })
}



